<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>58.es11大整型</title>
</head>
<body>

<script>
  let maxI = Number.MAX_SAFE_INTEGER

  console.log(maxI)
  console.log(maxI+1)//9007199254740992
  console.log(maxI+2)//9007199254740992
  console.log(maxI+3)//9007199254740994
  console.log(maxI+4)//9007199254740996

  let max2 =  BigInt(maxI)
  console.log(max2)//9007199254740991n
  console.log(max2+1n)//9007199254740992n
  console.log(max2+2n)//9007199254740993n
  console.log(max2+3n)//9007199254740994n
</script>
</body>
</html>